package calender;

import java.sql.SQLOutput;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.logging.SimpleFormatter;

public class Test {
    public static void main(String[] args) {

        //SimpleFormatter sf = new SimpleFormatter();
        Calendar c = Calendar.getInstance();
        Date time = c.getTime();
        System.out.println("当前时间:"+ new SimpleDateFormat("yyyy-MM-dd").format(time));
        c.add(Calendar.MONTH, 3);
        System.out.println("新的时间:"+ new SimpleDateFormat("yyyy-MM-dd").format(c.getTime()));
    }
}
